package com.ruoyi.mall.sms.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商品限时购与商品关系对象 sms_flash_promotion_product_relation
 *
 * @author xuxing
 * @date 2021-02-09
 */
public class SmsFlashPromotionProductRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 限时购id */
    private Long flashPromotionId;

    /** 限时购场次id */
    private Long flashPromotionSessionId;

    /** 商品id */
    @Excel(name = "商品编号")
    private Long productId;

    /** 限时购价格 */
    @Excel(name = "限时购价格")
    private BigDecimal flashPromotionPrice;

    /** 活动数量 */
    @Excel(name = "活动数量")
    private Long flashPromotionCount;

    /** 活动商品数量 */
    @Excel(name = "活动商品数量")
    private Long flashPromotionLimit;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    @Excel(name = "商品名称")
    private String name;

    @Excel(name = "商品价格")
    private BigDecimal price;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFlashPromotionId(Long flashPromotionId)
    {
        this.flashPromotionId = flashPromotionId;
    }

    public Long getFlashPromotionId()
    {
        return flashPromotionId;
    }
    public void setFlashPromotionSessionId(Long flashPromotionSessionId)
    {
        this.flashPromotionSessionId = flashPromotionSessionId;
    }

    public Long getFlashPromotionSessionId()
    {
        return flashPromotionSessionId;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setFlashPromotionPrice(BigDecimal flashPromotionPrice)
    {
        this.flashPromotionPrice = flashPromotionPrice;
    }

    public BigDecimal getFlashPromotionPrice()
    {
        return flashPromotionPrice;
    }
    public void setFlashPromotionCount(Long flashPromotionCount)
    {
        this.flashPromotionCount = flashPromotionCount;
    }

    public Long getFlashPromotionCount()
    {
        return flashPromotionCount;
    }
    public void setFlashPromotionLimit(Long flashPromotionLimit)
    {
        this.flashPromotionLimit = flashPromotionLimit;
    }

    public Long getFlashPromotionLimit()
    {
        return flashPromotionLimit;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("flashPromotionId", getFlashPromotionId())
            .append("flashPromotionSessionId", getFlashPromotionSessionId())
            .append("productId", getProductId())
            .append("flashPromotionPrice", getFlashPromotionPrice())
            .append("flashPromotionCount", getFlashPromotionCount())
            .append("flashPromotionLimit", getFlashPromotionLimit())
            .append("sort", getSort())
            .toString();
    }
}
